// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CoreWebsite generated by hbm2java
 */
@Entity
@Table(name = "core_website", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = "code"))
public class CoreWebsite implements java.io.Serializable 
{
	private static final long serialVersionUID = 121323L;

	private Short websiteId;
	private String code;
	private String name;
	private short sortOrder;
	private short defaultGroupId;
	private Short isDefault;
	private Set customerEavAttributeWebsites = new HashSet(0);
	private Set catalogProductBundlePriceIndexes = new HashSet(0);
	private Set coreStoreGroups = new HashSet(0);
	private Set catalogProductIndexPrices = new HashSet(0);
	private Set persistentSessions = new HashSet(0);
	private Set catalogProductEntities = new HashSet(0);
	private Set downloadableLinkPrices = new HashSet(0);
	private CatalogProductIndexWebsite catalogProductIndexWebsite;
	private Set weeeDiscounts = new HashSet(0);
	private Set catalogProductSuperAttributePricings = new HashSet(0);
	private Set productAlertStocks = new HashSet(0);
	private Set catalogruleProductPrices = new HashSet(0);
	private Set catalogProductEntityTierPrices = new HashSet(0);
	private Set salesruleProductAttributes = new HashSet(0);
	private Set paypalCerts = new HashSet(0);
	private Set cataloginventoryStockStatuses = new HashSet(0);
	private Set catalogruleProducts = new HashSet(0);
	private Set customerEntities = new HashSet(0);
	private Set coreStores = new HashSet(0);
	private Set weeeTaxes = new HashSet(0);
	private Set catalogProductIndexTierPrices = new HashSet(0);
	private Set productAlertPrices = new HashSet(0);
	private Set catalogProductBundleSelectionPrices = new HashSet(0);
	private Set catalogruleGroupWebsites = new HashSet(0);

	public CoreWebsite() {
	}

	public CoreWebsite(short sortOrder, short defaultGroupId) {
		this.sortOrder = sortOrder;
		this.defaultGroupId = defaultGroupId;
	}

	public CoreWebsite(String code, String name, short sortOrder,
			short defaultGroupId, Short isDefault,
			Set customerEavAttributeWebsites,
			Set catalogProductBundlePriceIndexes, Set coreStoreGroups,
			Set catalogProductIndexPrices, Set persistentSessions,
			Set catalogProductEntities, Set downloadableLinkPrices,
			CatalogProductIndexWebsite catalogProductIndexWebsite,
			Set weeeDiscounts, Set catalogProductSuperAttributePricings,
			Set productAlertStocks, Set catalogruleProductPrices,
			Set catalogProductEntityTierPrices, Set salesruleProductAttributes,
			Set paypalCerts, Set cataloginventoryStockStatuses,
			Set catalogruleProducts, Set customerEntities, Set coreStores,
			Set weeeTaxes, Set catalogProductIndexTierPrices,
			Set productAlertPrices, Set catalogProductBundleSelectionPrices,
			Set catalogruleGroupWebsites) {
		this.code = code;
		this.name = name;
		this.sortOrder = sortOrder;
		this.defaultGroupId = defaultGroupId;
		this.isDefault = isDefault;
		this.customerEavAttributeWebsites = customerEavAttributeWebsites;
		this.catalogProductBundlePriceIndexes = catalogProductBundlePriceIndexes;
		this.coreStoreGroups = coreStoreGroups;
		this.catalogProductIndexPrices = catalogProductIndexPrices;
		this.persistentSessions = persistentSessions;
		this.catalogProductEntities = catalogProductEntities;
		this.downloadableLinkPrices = downloadableLinkPrices;
		this.catalogProductIndexWebsite = catalogProductIndexWebsite;
		this.weeeDiscounts = weeeDiscounts;
		this.catalogProductSuperAttributePricings = catalogProductSuperAttributePricings;
		this.productAlertStocks = productAlertStocks;
		this.catalogruleProductPrices = catalogruleProductPrices;
		this.catalogProductEntityTierPrices = catalogProductEntityTierPrices;
		this.salesruleProductAttributes = salesruleProductAttributes;
		this.paypalCerts = paypalCerts;
		this.cataloginventoryStockStatuses = cataloginventoryStockStatuses;
		this.catalogruleProducts = catalogruleProducts;
		this.customerEntities = customerEntities;
		this.coreStores = coreStores;
		this.weeeTaxes = weeeTaxes;
		this.catalogProductIndexTierPrices = catalogProductIndexTierPrices;
		this.productAlertPrices = productAlertPrices;
		this.catalogProductBundleSelectionPrices = catalogProductBundleSelectionPrices;
		this.catalogruleGroupWebsites = catalogruleGroupWebsites;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "website_id", unique = true, nullable = false)
	public Short getWebsiteId() {
		return this.websiteId;
	}

	public void setWebsiteId(Short websiteId) {
		this.websiteId = websiteId;
	}

	@Column(name = "code", unique = true, length = 32)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "name", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "sort_order", nullable = false)
	public short getSortOrder() {
		return this.sortOrder;
	}

	public void setSortOrder(short sortOrder) {
		this.sortOrder = sortOrder;
	}

	@Column(name = "default_group_id", nullable = false)
	public short getDefaultGroupId() {
		return this.defaultGroupId;
	}

	public void setDefaultGroupId(short defaultGroupId) {
		this.defaultGroupId = defaultGroupId;
	}

	@Column(name = "is_default")
	public Short getIsDefault() {
		return this.isDefault;
	}

	public void setIsDefault(Short isDefault) {
		this.isDefault = isDefault;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCustomerEavAttributeWebsites() {
		return this.customerEavAttributeWebsites;
	}

	public void setCustomerEavAttributeWebsites(Set customerEavAttributeWebsites) {
		this.customerEavAttributeWebsites = customerEavAttributeWebsites;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogProductBundlePriceIndexes() {
		return this.catalogProductBundlePriceIndexes;
	}

	public void setCatalogProductBundlePriceIndexes(
			Set catalogProductBundlePriceIndexes) {
		this.catalogProductBundlePriceIndexes = catalogProductBundlePriceIndexes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCoreStoreGroups() {
		return this.coreStoreGroups;
	}

	public void setCoreStoreGroups(Set coreStoreGroups) {
		this.coreStoreGroups = coreStoreGroups;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogProductIndexPrices() {
		return this.catalogProductIndexPrices;
	}

	public void setCatalogProductIndexPrices(Set catalogProductIndexPrices) {
		this.catalogProductIndexPrices = catalogProductIndexPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getPersistentSessions() {
		return this.persistentSessions;
	}

	public void setPersistentSessions(Set persistentSessions) {
		this.persistentSessions = persistentSessions;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "catalog_product_website", catalog = "magento", joinColumns = { @JoinColumn(name = "website_id", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "product_id", nullable = false, updatable = false) })
	public Set getCatalogProductEntities() {
		return this.catalogProductEntities;
	}

	public void setCatalogProductEntities(Set catalogProductEntities) {
		this.catalogProductEntities = catalogProductEntities;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getDownloadableLinkPrices() {
		return this.downloadableLinkPrices;
	}

	public void setDownloadableLinkPrices(Set downloadableLinkPrices) {
		this.downloadableLinkPrices = downloadableLinkPrices;
	}

	@OneToOne(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public CatalogProductIndexWebsite getCatalogProductIndexWebsite() {
		return this.catalogProductIndexWebsite;
	}

	public void setCatalogProductIndexWebsite(
			CatalogProductIndexWebsite catalogProductIndexWebsite) {
		this.catalogProductIndexWebsite = catalogProductIndexWebsite;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getWeeeDiscounts() {
		return this.weeeDiscounts;
	}

	public void setWeeeDiscounts(Set weeeDiscounts) {
		this.weeeDiscounts = weeeDiscounts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogProductSuperAttributePricings() {
		return this.catalogProductSuperAttributePricings;
	}

	public void setCatalogProductSuperAttributePricings(
			Set catalogProductSuperAttributePricings) {
		this.catalogProductSuperAttributePricings = catalogProductSuperAttributePricings;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getProductAlertStocks() {
		return this.productAlertStocks;
	}

	public void setProductAlertStocks(Set productAlertStocks) {
		this.productAlertStocks = productAlertStocks;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogruleProductPrices() {
		return this.catalogruleProductPrices;
	}

	public void setCatalogruleProductPrices(Set catalogruleProductPrices) {
		this.catalogruleProductPrices = catalogruleProductPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogProductEntityTierPrices() {
		return this.catalogProductEntityTierPrices;
	}

	public void setCatalogProductEntityTierPrices(
			Set catalogProductEntityTierPrices) {
		this.catalogProductEntityTierPrices = catalogProductEntityTierPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getSalesruleProductAttributes() {
		return this.salesruleProductAttributes;
	}

	public void setSalesruleProductAttributes(Set salesruleProductAttributes) {
		this.salesruleProductAttributes = salesruleProductAttributes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getPaypalCerts() {
		return this.paypalCerts;
	}

	public void setPaypalCerts(Set paypalCerts) {
		this.paypalCerts = paypalCerts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCataloginventoryStockStatuses() {
		return this.cataloginventoryStockStatuses;
	}

	public void setCataloginventoryStockStatuses(
			Set cataloginventoryStockStatuses) {
		this.cataloginventoryStockStatuses = cataloginventoryStockStatuses;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogruleProducts() {
		return this.catalogruleProducts;
	}

	public void setCatalogruleProducts(Set catalogruleProducts) {
		this.catalogruleProducts = catalogruleProducts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCustomerEntities() {
		return this.customerEntities;
	}

	public void setCustomerEntities(Set customerEntities) {
		this.customerEntities = customerEntities;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCoreStores() {
		return this.coreStores;
	}

	public void setCoreStores(Set coreStores) {
		this.coreStores = coreStores;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getWeeeTaxes() {
		return this.weeeTaxes;
	}

	public void setWeeeTaxes(Set weeeTaxes) {
		this.weeeTaxes = weeeTaxes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogProductIndexTierPrices() {
		return this.catalogProductIndexTierPrices;
	}

	public void setCatalogProductIndexTierPrices(
			Set catalogProductIndexTierPrices) {
		this.catalogProductIndexTierPrices = catalogProductIndexTierPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getProductAlertPrices() {
		return this.productAlertPrices;
	}

	public void setProductAlertPrices(Set productAlertPrices) {
		this.productAlertPrices = productAlertPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogProductBundleSelectionPrices() {
		return this.catalogProductBundleSelectionPrices;
	}

	public void setCatalogProductBundleSelectionPrices(
			Set catalogProductBundleSelectionPrices) {
		this.catalogProductBundleSelectionPrices = catalogProductBundleSelectionPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreWebsite")
	public Set getCatalogruleGroupWebsites() {
		return this.catalogruleGroupWebsites;
	}

	public void setCatalogruleGroupWebsites(Set catalogruleGroupWebsites) {
		this.catalogruleGroupWebsites = catalogruleGroupWebsites;
	}

}
